//
//  CityRecentlyTableViewCell.m
//  OneDay
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 oneDay. All rights reserved.
//

#import "CityRecentlyTableViewCell.h"

@implementation CityRecentlyTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self layOut];
    }
    return self;
}

- (void)layOut
{
    for (int i = 0; i < 3; i++) {
        UIButton *button = [UIButton buttonWithType:(UIButtonTypeCustom)];
        button.frame = CGRectMake(20 + i * 120, 5, 80, 40);
        button.layer.borderWidth = 0.4;
        button.layer.cornerRadius = button.frame.size.width / 15;
        [button setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        button.tag = 2000 + i;
        [self addSubview:button];
    }
}









- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
